package farmer.useful;

public class Log {
	
	//--------------------------- Logging methods ------------------------------
	private static boolean m1 = true;
	private static boolean k1 = true;
	
	public static void m1(Object object){
		if(m1){
			System.out.println(object);
		}
	}
	
	public static void k1(Object object){
		if(k1){
			System.out.println(object);
		}
	}
	
	//--------------------------- Timing methods ------------------------------

	private static long timeBefore1;
	private static long timeAfter1;
	
	public static void startTimer1(){
		timeBefore1 = System.nanoTime();
	}
	
	/**
	 * @return Time between the start and the end of the timer in milisec
	 */
	public static int getTimer1(){
		timeAfter1 = System.nanoTime();
		int delta = (int) ((timeAfter1-timeBefore1)/(1000*1000));
		return delta;
	}
}
